package com.net.model;

import java.util.Arrays;

public class WebsiteFlow {
	private String type;
	private String domain;
	private Double[] flowPerMinute;
	private int cursor;
	
	

	public WebsiteFlow(String type, String domain, Double[] flowPerMinute, int cursor) {
		super();
		Double[] d = new Double[30];
		for(int i = 0; i < 30; i ++){
			d[i] = 0.0;
		}
		this.type = type;
		this.domain = domain;
		this.flowPerMinute = flowPerMinute;
		this.cursor = cursor;
		this.flowPerMinute = d;
	}

	public WebsiteFlow() {
		super();
		this.flowPerMinute = new Double[30];
		this.cursor = 0;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getDomain() {
		return domain;
	}

	public void setDomain(String domain) {
		this.domain = domain;
	}

	public Double[] getFlowPerMinute() {
		return flowPerMinute;
	}

	public void setFlowPerMinute(Double[] flowPerMinute) {
		this.flowPerMinute = flowPerMinute;
	}

	public int getCursor() {
		return cursor;
	}

	public void setCursor(int cursor) {
		this.cursor = cursor;
	}

	@Override
	public String toString() {
		return "WebsiteFlow [type=" + type + ", domain=" + domain + ", flowPerMinute=" + Arrays.toString(flowPerMinute)
				+ ", cursor=" + cursor + "]";
	}

}
